package com.sczmgk.frame.http;

public class HttpDownloadResponse extends HttpResponse {
	/**
	 * fileName
	 */
	private String mFilePath;
	protected HttpDownloadResponse(int state,HttpRequest httpRequest) {
		super(state,httpRequest);
	}
	protected HttpDownloadResponse(int state,HttpRequest httpRequest, String filePath) {
		super(state,httpRequest);
		this.mFilePath = filePath;
	}
	public String getFilePath() {
		return mFilePath;
	}

	@Override
	public String toString() {
		if(getStateCode()==STATE_SUCCESS){
			return ""+mFilePath;
		}else{
			return "失败";
		}
	}

	@Override
	public HttpResponse createSameResponse(HttpRequest httpRequest) {
		return new HttpDownloadResponse(getStateCode(), httpRequest, mFilePath);
	}
	
}
